#include <QStandardItemModel>

#include "tableview.h"
#include "itemdelegate.h"


TableView::TableView(int w,int h,int col){
    resize(w,h);
    model = new QStandardItemModel(row,col);
    setModel(model);
}

QString TableView::GetItemData(int row, int col){
    QModelIndex index = model->index(row,col,QModelIndex());
    return model->data(index).toString();
}

